#include "mythread.cpp"
#include <stdio.h>
#include "CountingSemaphore.h"

int main()
{
	MyThread t1(Thread::PRIORITY_NORMAL, "T1"), t2(Thread::PRIORITY_NORMAL, (string) "T2");
	t1.a = 25;
	t2.a = 26;

	CountingSemaphore cs(1);
	t1.ps=&cs;
	t2.ps=&cs;
	
	int i = 0;
	t1.pi = &i;
	t2.pi = &i;

	printf("hej");
	t1.start();
	t2.start();
//	t1.setPriority(Thread::PRIORITY_NORMAL);


	while (1) {}
}
